package jok.decorator.ab;

public abstract class WriterDecorator extends Writer {

	private Writer writer;

	public WriterDecorator(Writer writer) {
		this.writer = writer;
	}

	public abstract void bufferedWrite();

	@Override
	public void write() {
		this.bufferedWrite();
		writer.write();
	}
}
